home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / super_ka.swf / scripts / frame_6 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  3.4 KB  |  159 lines

  1. function bgSoundFunc(_soundName)
  2. {
  3.    bgSound.stop();
  4.    var _loc1_ = _soundName;
  5.    bgSound = new Sound();
  6.    bgSound.attachSound(_loc1_);
  7.    if(_root.allowBgSoundFlag == true)
  8.    {
  9.       bgSound.start(0,10000);
  10.    }
  11. }
  12. function effectSoundFunc(_soundName)
  13. {
  14.    effectSound.stop();
  15.    _root.createEmptyMovieClip("effecMc",70000);
  16.    var _loc1_ = _soundName;
  17.    effectSound = new Sound(effecMc);
  18.    effectSound.attachSound(_loc1_);
  19.    effectSound.start(0,1);
  20. }
  21. function __com_mochibot__(swfid, mc, lv, trk)
  22. {
  23.    var x;
  24.    var g;
  25.    var s;
  26.    var fv;
  27.    var sb;
  28.    var u;
  29.    var res;
  30.    var mb;
  31.    var mbc;
  32.    mb = "__mochibot__";
  33.    mbc = "mochibot.com";
  34.    g = !_global ? _level0._root : _global;
  35.    if(g[mb + swfid])
  36.    {
  37.       return g[mb + swfid];
  38.    }
  39.    s = System.security;
  40.    x = mc._root.getSWFVersion;
  41.    fv = !x ? (!_global ? 5 : 6) : mc.getSWFVersion();
  42.    if(!s)
  43.    {
  44.       s = {};
  45.    }
  46.    sb = s.sandboxType;
  47.    if(sb == "localWithFile")
  48.    {
  49.       return null;
  50.    }
  51.    x = s.allowDomain;
  52.    if(x)
  53.    {
  54.       s.allowDomain(mbc);
  55.    }
  56.    x = s.allowInsecureDomain;
  57.    if(x)
  58.    {
  59.       s.allowInsecureDomain(mbc);
  60.    }
  61.    u = "http://" + mbc + "/my/core.swf?mv=7&fv=" + fv + "&v=" + escape(getVersion()) + "&swfid=" + escape(swfid) + "&l=" + lv + "&f=" + mc + (!sb ? "" : "&sb=" + sb) + (!trk ? "" : "&t=1");
  62.    lv = fv <= 6 ? (!g[mb + "level"] ? lv : g[mb + "level"] + 1) : mc.getNextHighestDepth();
  63.    g[mb + "level"] = lv;
  64.    if(fv == 5)
  65.    {
  66.       res = "_level" + lv;
  67.       if(!eval(res))
  68.       {
  69.          getURL(u,"_level" add lv);
  70.       }
  71.    }
  72.    else
  73.    {
  74.       res = mc.createEmptyMovieClip(mb + swfid,lv);
  75.       res.loadMovie(u);
  76.    }
  77.    return res;
  78. }
  79. function __com_mochibot__(swfid, mc, lv, trk)
  80. {
  81.    var x;
  82.    var g;
  83.    var s;
  84.    var fv;
  85.    var sb;
  86.    var u;
  87.    var res;
  88.    var mb;
  89.    var mbc;
  90.    mb = "__mochibot__";
  91.    mbc = "mochibot.com";
  92.    g = !_global ? _level0._root : _global;
  93.    if(g[mb + swfid])
  94.    {
  95.       return g[mb + swfid];
  96.    }
  97.    s = System.security;
  98.    x = mc._root.getSWFVersion;
  99.    fv = !x ? (!_global ? 5 : 6) : mc.getSWFVersion();
  100.    if(!s)
  101.    {
  102.       s = {};
  103.    }
  104.    sb = s.sandboxType;
  105.    if(sb == "localWithFile")
  106.    {
  107.       return null;
  108.    }
  109.    x = s.allowDomain;
  110.    if(x)
  111.    {
  112.       s.allowDomain(mbc);
  113.    }
  114.    x = s.allowInsecureDomain;
  115.    if(x)
  116.    {
  117.       s.allowInsecureDomain(mbc);
  118.    }
  119.    u = "http://" + mbc + "/my/core.swf?mv=7&fv=" + fv + "&v=" + escape(getVersion()) + "&swfid=" + escape(swfid) + "&l=" + lv + "&f=" + mc + (!sb ? "" : "&sb=" + sb) + (!trk ? "" : "&t=1");
  120.    lv = fv <= 6 ? (!g[mb + "level"] ? lv : g[mb + "level"] + 1) : mc.getNextHighestDepth();
  121.    g[mb + "level"] = lv;
  122.    if(fv == 5)
  123.    {
  124.       res = "_level" + lv;
  125.       if(!eval(res))
  126.       {
  127.          getURL(u,"_level" add lv);
  128.       }
  129.    }
  130.    else
  131.    {
  132.       res = mc.createEmptyMovieClip(mb + swfid,lv);
  133.       res.loadMovie(u);
  134.    }
  135.    return res;
  136. }
  137. stop();
  138. __com_mochibot__("8e61aba6",this,10301,true);
  139. __com_mochibot__("f095939d",this,10301,true);
  140. adLoader2.play();
  141. start_btn.onRelease = function()
  142. {
  143.    play();
  144. };
  145. showRuler_btn.onRelease = function()
  146. {
  147.    gotoAndStop("help");
  148. };
  149. moreBtn.onRelease = function()
  150. {
  151.    getUrl("http://www.koalafun.com/", "_blank");
  152. };
  153. addBtn.onRelease = function()
  154. {
  155.    getUrl("http://www.koalafun.com/free-website-games.htm", "_blank");
  156. };
  157. _root.allowBgSoundFlag = true;
  158. bgSoundFunc("start");
  159.